@ var head={
<title>学籍管理</title>

<style>
.datagrid-header-rownumber, .datagrid-cell-rownumber {
	width: 40px;
}
</style>
@}; var ctrls= "ng-controller='XueshengCtrls'" ; var body ={

<div class="easyui-layout" data-options="fit : true,border : false">

	@if( so.hasPermission("/business/xuesheng/add")) {
	<div ng-model="so_add" ng-init="so_add=true"></div>
	@}if( so.hasPermission("/business/xuesheng/edit")) {
	<div ng-model="so_eidt" ng-init="so_edit=true"></div>
	@}if( so.hasPermission("/business/xuesheng/delete")) {
	<div ng-model="so_delete" ng-init="so_delete=true"></div>
	@}if( so.hasPermission("/business/xuesheng/batchDelete")) {
	<div ng-model="so_batchDelete" ng-init="so_batchDelete=true"></div>
	@}if( so.hasPermission("/business/xuesheng/export")) {
	<div ng-model="so_export" ng-init="so_export=true"></div>
	@}if( so.hasPermission("/business/xuesheng/importExcel")) {
	<div ng-model="so_importExcel" ng-init="so_importExcel=true"></div>
	@}if( so.hasPermission("/business/xuesheng/importExcel")) {
	<div ng-model="so_getAllCjByZyidAndXsid" ng-init="so_getAllCjByZyidAndXsid=true"></div>
	@}
	<div
		data-options="region:'north',title:'查询条件',border:false,collapsed:true,"
		style="height: 160px; overflow: hidden;">
		<form id="searchForm">
			<table class="table table-hover table-condensed"
				style="display: none;">
				<tr>
					<th>姓名</th>
					<td><input name="name" class="span2" /></td>
					<th>准考证</th>
					<td><input name="zkz" class="span2" /></td>
					<th>手机号码</th>
					<td><input name="mobile" class="span2" /></td>

				</tr>
				<tr>
					<th>自考专业</th>
					<td><input id="zyidcombobox" name="zyId" class="span2" /></td>
					<th>所属号码</th>
					<td><input name="sshm" class="span2" /></td>
					<th>身份证号码</th>
					<td><input name="sfz" class="span2" /></td>



				</tr>
				<tr>
					<th>学校</th>
					<td><input name="school" class="span2" /></td>
				</tr>
			</table>
		</form>
	</div>
	<div data-options="region:'center',border:false">
		<table id="dataGrid"></table>
	</div>

	<div id="toolbar" style="display: none;">
		<a ng-show="so_add" ng-click="addFun()" href="javascript:void(0);"
			class="easyui-linkbutton" data-options="plain:true,iconCls:'bug_add'">添加</a>
		<a ng-show="so_export" ng-click="exportFun()"
			href="javascript:void(0);" class="easyui-linkbutton"
			data-options="plain:true,iconCls:'excel'">导出</a> <a
			ng-show="so_importExcel" ng-click="importExcelFun()"
			href="javascript:void(0);" class="easyui-linkbutton"
			data-options="plain:true,iconCls:'excel'">导入</a> <a
			ng-show="so_batchDelete" ng-click="batchDeleteFun()"
			href="javascript:void(0);" class="easyui-linkbutton"
			data-options="plain:true,iconCls:'delete'">批量删除</a>  <a
			href="javascript:void(0);" class="easyui-linkbutton"
			data-options="iconCls:'brick_add',plain:true" ng-click="searchFun();">过滤条件</a><a
			href="javascript:void(0);" class="easyui-linkbutton"
			data-options="iconCls:'brick_delete',plain:true"
			ng-click="cleanFun();">清空条件</a>

	</div>

	<div id="menu" class="easyui-menu" style="width: 120px; display: none;">

		<div ng-show="so_add" ng-click="addFun();"
			data-options="iconCls:'pencil_add'">增加</div>
		<div ng-show="so_delete" ng-click="deleteFun();"
			data-options="iconCls:'pencil_delete'">删除</div>
		<div ng-show="so_edit" ng-click="editFun();"
			data-options="iconCls:'pencil'">编辑</div>
				<div ng-show="so_getAllCjByZyidAndXsid" ng-click="viewAllCjFun();"
			data-options="iconCls:'pencil'">查看该生成绩</div>
	</div>
	<!--  dialog -->
	<div id="dlg" class="easyui-dialog"
		style="width: 580px; height: 350px; padding: 5px 10px" closed="true"
		buttons="#dlg-buttons" data-options="resizable:true,modal:true">

		<div class="easyui-layout" data-options="fit:true,border:false">
			<div data-options="region:'center',border:false" title=""
				style="overflow: hidden;">
				<form id="fm" method="post">
					<input name="id" type="hidden">
					<table class="table table-hover table-condensed">
						<tr>
							<th>姓名</th>
							<td><input name="name" type="text" placeholder="请输入"
								class="easyui-validatebox span2" data-options="required:true"></td>
							<th>准考证</th>
							<td><input name="zkz" type="text" placeholder="请输入"
								class="easyui-validatebox span2" data-options="required:true"></td>

						</tr>
						<tr>
							<th>手机号码</th>
							<td><input name="mobile" type="text" placeholder="请输入"
								class="easyui-validatebox span2" data-options="required:true"></td>
							<th>所属号码</th>
							<td><input name="sshm" type="text" placeholder="请输入"
								class="easyui-validatebox span2" data-options="required:true"></td>

						</tr>
						<tr>
							<th>自考专业</th>
							<td><input name="zyId" id="zyidcombobox_edit"
								class="span2"
								data-options="required:true,width:140,height:29," /></td>
							<th>身份证</th>
							<td><input name="sfz" type="text" placeholder="请输入"
								class="easyui-validatebox span2" data-options="required:true"></td>
						</tr>
						<tr>
							<th>学校</th>
							<td><input name="school" type="text" placeholder="请输入"
								class="easyui-validatebox span2" data-options="required:true"></td>
							<th>状态</th>
							<td><select name="status"
								class="easyui-combobox"
								data-options="required:true,width:140,height:29,editable:false,panelHeight:'auto'">
									<option value="1" selected="selected">正常</option>
									<option value="0">非正常</option>

							</select></td>

						</tr>

					</table>
				</form>
			</div>
		</div>
	</div>
	<div id="dlg-buttons">
		<a href="javascript:void(0)" class="easyui-linkbutton"
			ng-click="submit()">确定</a> <a href="javascript:void(0)"
			class="easyui-linkbutton"
			onclick="javascript:$('#dlg').dialog('close')">取消</a>
	</div>

	<div id="dlg2" class="easyui-dialog"
		style="width: 550px; height: 250px; padding: 5px 10px" closed="true"
		buttons="#dlg-buttons2" data-options="resizable:true,modal:true">

		<div class="easyui-layout" data-options="fit:true,border:false">
			<div data-options="region:'center',border:false" title=""
				style="overflow: hidden;">
				<form id="fm2" method="post" enctype="multipart/form-data">
					<input type="file" name="file" id="file" />
					<hr />
					<ul>
						<li>1:整个excel的单元格式必须为文本模式</li>
						<li>2:点击上传时，如果提示存在错误数据，则整个操作已失败，请按照提示更正数据后再上传</li>
					</ul>
				</form>
			</div>
		</div>
	</div>
	<div id="dlg-buttons2">
		<a href="javascript:void(0)" class="easyui-linkbutton"
			ng-click="submitImportExcel()">确定</a> <a href="javascript:void(0)"
			class="easyui-linkbutton"
			onclick="javascript:$('#dlg2').dialog('close')">取消</a>
	</div>

	<div id="w" class="easyui-window" title="错误数据"
		data-options="modal:true,closed:true,iconCls:'icon-save'"
		style="width: 600px; height: 450px; padding: 10px;">
		<div id="ErrorContent"></div>


	</div>
	<div id="cjDialog" class="easyui-window" title="学生成绩"
		data-options="modal:true,closed:true,iconCls:'icon-save'"
		style="width: 600px; height: 450px; padding: 10px;">
		<div id="cjContent"></div>
	</div>
	<div ng-init="load()"></div>
	@};var js={
	<script type="text/javascript">
var  formatterFun=function(value, row, index) {
		var str = '';
		
		@if( so.hasPermission("/business/xuesheng/edit")) 
			str += $.formatString('<img ng-show="so_edit" onclick="$(this).scope().editFun(\'{0}\')"  src="{1}" title="编辑"/> ', row.id, PATH+'/static/js/ext/style/images/extjs_icons/bug/bug_edit.png');
		str += '&nbsp;';
		@if( so.hasPermission("/business/xuesheng/delete")) 
			str += $.formatString('<img ng-show="so_delete" onclick="$(this).scope().deleteFun(\'{0}\');" src="{1}" title="删除"/>', row.id, PATH+'/static/js/ext/style/images/extjs_icons/bug/bug_delete.png');
		str += '&nbsp;';
		@if( so.hasPermission("/business/xuesheng/status")) 
			str += $.formatString('<img ng-show="so_status" onclick="$(this).scope().statusFun(\'{0}\',1);" src="{1}" title="修改状态"/>', row.id, PATH+'/static/js/ext/style/images/extjs_icons/bug/bug_go.png');
		@
			return str;
}
</script>
<script src="${CONTEXT_PATH}/static/app/cookies.js" type="text/javascript"></script>
	<script type="text/javascript"
		src="${CONTEXT_PATH}/static/js/ajaxfileupload.js" charset="utf-8"></script>
	<script src="${CONTEXT_PATH}/static/app/ctrls/xuesheng-ctrls.js"
		type="text/javascript"></script>
	@};include("../layout/_layout.html",{head:head,body:body,js:js,ctrls:ctrls}){}
